
import 'package:flutter_ahj_app/base/basewidget/HttpUtils/HttpClient.dart';

class PcrwApiRequest {
  /*
    * 排查任务列表
    * */
  static Stream getPcrwApi(Map map) {
    return HttpClient.getInstance().get("/xay/v1/app/hazard/investigation/task/pageListOfHazardTask", params: map);
  }

  /*
    * 排查任务列表 我发起的
    * */
  static Stream getPcrwfqApi(Map map) {
    return HttpClient.getInstance().get("/xay/v1/app/hazard/investigation/task/pageListOfLaunched", params: map);
  }

  /*
    * 风险点信息
    * */
  static Stream fxdxxApi(Map map) {
    return HttpClient.getInstance().get("/xay/v1/app/hazard/investigation/task/pageListHazardInvestigationRiskPoint", params: map);
  }

  /*
    * 选择人员
    * */
  static Stream personApi(var map) {
    return HttpClient.getInstance().post("/xay/v1/auth/user/getEmployees", map);
  }

  /*
    * 排查详情
    * */
  static Stream pcDetailsApi(var map) {
    return HttpClient.getInstance().get("/xay/v1/app/hazard/investigation/content/listOfHazardInvestigationContent", params: map);
  }

  /*
    * 排查内容更新
    * */
  static Stream pcupdateDataApi(var map) {
    return HttpClient.getInstance().post("/xay/v1/app/hazard/investigation/content/investigationHazardContent", map);
  }

  /*
    * 排查内容更新撤回
    * */
  static Stream pcupdateBackDataApi(var map) {
    return HttpClient.getInstance().post("/xay/v1/app/hazard/investigation/content/withdraw", map);
  }
  /*
    * 排查隐患详情
    * */
  static Stream pcyhDetailsApi(var map) {
    return HttpClient.getInstance().get("/xay/v1/app/hazard/investigation/content/getHazardInfoOfInvestigationContent", params: map);
  }


  /*
    * 排查内容更新撤回
    * */
  static Stream yhdjDataApi(var map) {
    return HttpClient.getInstance().post("/xay/v1/app/hazard/investigation/content/investigationHazardContent", map);
  }
}